-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-12-14
-- description: 建造者模式-组合订单(Builder类)
--
-- ----------------------------------------------------------

MealBuilder = MealBuilder or BaseClass()

function MealBuilder:__init()
	-- body
end

function MealBuilder:PrepareVegMeal()
	-- 一个素菜汉堡加一个可乐
	local meal = Meal.New()
	meal:AddItem(VegBurger.New())
	meal:AddItem(Coke.New())

	return meal
end

function MealBuilder:PrepareNonVegMeal()
	-- 一个鸡肉汉堡加一个百事
	local meal = Meal.New()
	meal:AddItem(ChickenBurger.New())
	meal:AddItem(Pepsi.New())

	return meal
end